package com.dream.tvsearcher.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.dream.tvsearcher.R;
import com.dream.tvsearcher.bean.WxBean;

import java.util.List;

/**
 * Created by Vitcor Lam on 17/02/11/0011.
 */

public class MyWxAdapter extends RecyclerView.Adapter<MyWxAdapter.ViewHolder> {
    List<WxBean> list;
    Context context;
    public MyWxAdapter(List<WxBean> list,Context context){
        this.list=list;
        this.context=context;
    }
    @Override
    public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view= LayoutInflater.from(context).inflate(R.layout.fragment_wx,parent,false);
        return new ViewHolder(view);
    }

    @Override
    public void onBindViewHolder(ViewHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return 0;
    }

    public class ViewHolder extends RecyclerView.ViewHolder{
        ImageView iv;
        TextView title,source;

        public ViewHolder(View itemView) {
            super(itemView);
            iv= (ImageView) itemView.findViewById(R.id.iv_wx);
            title= (TextView) itemView.findViewById(R.id.tv_wx_title);
            source= (TextView) itemView.findViewById(R.id.tv_wx_source);
        }
    }
}
